package edu.gdkm.demo;

public class Demo12 {
    //1*2*3*4*5*..*10=3628800
    public static void main(String[] args) {
        double x = 1;
        int i = 2;
        while(i<=100){
            x=x*i;
            System.out.println("x="+x+":i="+i);
            i++;
        }
        System.out.println(x);
    }
}
